﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
#parse("_heade.html")
<link href="${theme}css/message.css" rel="stylesheet" type="text/css">
<body id="message">
<div class="qiandaobanner"> <img src="${theme}images/522c649a6fd98.jpg" ></div>
<div class="cardexplain">
  <div class="window" id="windowcenter" style="z-index:100">
    <div id="title" class="wtitle">操作提示<span class="close" id="alertclose"></span></div>
    <div class="content">
      <div id="txt"></div>
    </div>
  </div>
  <script type="text/javascript">
          //留言处理1 start
      jQuery(document).on("click", "#submit", function () {
          var user_name = jQuery("#user_name").val();
          if (user_name == '') {
              alert("请输入昵称");
              return
          }
          var content = jQuery("#content").val();
          if (content == '') {
              alert("请输入内容");
              return
          }
          jQuery('#form1').submit();
      });
        //留言1 end
	    jQuery("#windowclosebutton").click(function () {
	        jQuery("#windowcenter").slideUp(500);
	    });
	    jQuery("#alertclose").click(function () {
	        jQuery("#windowcenter").slideUp(500);
	    });
	    function alert(title) {
	        var showTime = arguments[1] ? arguments[1] : 1000;
	        jQuery("#windowcenter").slideToggle("slow");
	        jQuery("#txt").html(title);
	        setTimeout('jQuery("#windowcenter").slideUp(500)', showTime);
	    }
	    jQuery(document).ready(function () {
	        jQuery(".first1").click(function () {
	            jQuery(".ly1").slideToggle();
	        });
	    });
	    jQuery(document).ready(function () {
	        jQuery(".first2").click(function () {
	            jQuery(".ly2").slideToggle();
	        });
	    });
</script>
  <div class="history">
    <div class="history-date">
      <ul>
        <a>
        <h2 class="first first1" style="position: relative;" id="closel">请点击留言</h2>
        </a>
        <form id="form1" action="/form.aspx?act=addMFeedback" method="post">
        <input type="hidden" name="pos_mark" value="feedback" />
        <input type="hidden" name="lang" value="mobile" />
        <li class="green bounceInDown nob ly1" style="display:none" >
          <dl>
            <dt>
              <input id="user_name" name="user_name"  type="text" class="px" value=""  placeholder="请输入您的昵称">
            </dt>
            <dt>
              <textarea id="content" name="content" class="pxtextarea" style=" height:60px;" placeholder="请输入留言" ></textarea>
            </dt>
            <dt><a id="submit"  class="submit" >提交留言</a></dt>
          </dl>
        </li>
        </form>
        <font id="limsg"></font>
        #if($config.show_feedback == true)
        #foreach($item in $list)
        <li class="green bounceInDown">
          <h3>
            $item.user_name<span>$item.add_time</span>
            <div class="clr"></div>
          </h3>
          <dl>
            <dt class="hfinfo">$item.content</dt>
          </dl>
          <dl class="huifu">
		     <dt><span>回复：$!item.re_content <span></span></span></dt>
          </dl>
          <!--回复内容-->
        </li>
        #end
        #end
      </ul>
    </div>
  </div>
</div>
<div class="cLine">
  <div class="pageNavigator right" align="center">
    <div class="pages" style="margin:-10px 0px 10px 0px;"> $pager </div>
  </div>
  <div class="clr"></div>
</div>
</body>
</html>
